package com.visionarysoftwaresolutions

class Risk {
    String rating = "Low"
    String description
    Double probability = 1.0
    String impact
    String contingency

    static constraints = {
        rating(inList:["Low","Medium","High"])
        description(blank:false)
        probability(min:0.0d,max:1.0d)
        impact(nullable:true)
        owner()
        contingency(nullable:true)
    }
}